
<!DOCTYPE HTML>
<html lang="zh-hans" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>14.1 环境配置 · Flutter for Harmony教程</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.3">
        <meta name="author" content="坚果派">
        
        
    
    <link rel="stylesheet" href="../gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-splitter/splitter.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-tbfed-pagefooter/footer.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-expandable-chapters/expandable-chapters.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-chapter-fold/chapter-fold.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-back-to-top-button/plugin.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-code/plugin.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-pageview-count/plugin.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-search-plus/search.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-emphasize/plugin.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-forkmegithub/plugin.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-highlight/website.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-fontsettings/website.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-theme-lou/lou.css">
                
            
        

    

    
        
        <link rel="stylesheet" href="../styles/website.css">
        
    

        
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="../gitbook/images/favicon.ico" type="image/x-icon">

    
    <link rel="next" href="13.2Flutter_开发鸿蒙应用时三方库引入指南.html" />
    
    
    <link rel="prev" href="./" />
    

    </head>
    <body>
         
<div class="donate-modal modal">
  <div class="modal-header">
    <div>
      <span>
        <img
          id="modal-avatar"
          class="modal-avatar"
          src="http://xkapp-uat.oss-cn-hangzhou.aliyuncs.com/2e7a3f70-80ab-4b50-93ec-a04dfeef949b/avatar-100.png"
        />
      </span>
      <span id="nickname"> breeze </span>
      <p class="modal-close close" onclick="closeDonateModal()">×</p>
    </div>
    <div class="message">
      <div class="tip">
        <i></i>
        <span>随意打赏，但不要超过一顿早餐钱 💕</span>
      </div>
    </div>
  </div>
  <div class="modal-content">
    <div class="modal-pay-way">
      <div id="wxpay" onclick="showDonateImg(0)">
        <input
          type="radio"
          name="pay-way"
          value="wxpay"
          class="zs-type"
          checked="checked"
        />
        <span>
          <img
            id="wxpay-logo"
            src=""
          />
        </span>
      </div>
      <div id="alipay" onclick="showDonateImg(1)">
        <input type="radio" name="pay-way" value="alipay" class="zs-type" />
        <span>
          <img
            id="alipay-logo"
            src=""
          />
        </span>
      </div>
    </div>
    <div class="modal-pay-qrcode">
      <img id="wxpay-code" src="https://luckly007.oss-cn-beijing.aliyuncs.com/img/image-20210922202901895.png" />
      <img
        id="alipay-code"
        src="https://luckly007.oss-cn-beijing.aliyuncs.com/img/image-20210922202843746.png"
        hidden
      />
    </div>
  </div>
</div>
<div class="mask"></div>


<div class="book">
  <div class="header-inner">
    <!-- LOGO -->
    <div class="logo"></div>
    <span class="title"></span>

    <!-- Search -->
    
<div id="book-search-input" role="search">
    <input type="text" placeholder="输入并搜索" />
</div>


    <!-- Nav -->
    <ul class="header-nav">
      <li>
        <a href="https://www.nutpi.net/" target="_blank">坚果派官网</a>
      </li><li>
        <a href="https://www.arkui.club/" target="_blank">ArkUI实战</a>
      </li><li>
        <a href="https://space.bilibili.com/480883651" target="_blank">哔哩哔哩</a>
      </li><li>
        <a href="https://gitcode.com/nutpi" target="_blank">GitCode</a>
      </li>
    </ul>
  </div>

  <div class="book-summary">
    <div class="book-summary-title">文档目录</div>
     
    <nav role="navigation">


<ul class="summary">
    
    

    

    
        
        
    
        <li class="chapter " data-level="1.1" data-path="../">
            
                <a href="../">
            
                    
                    1.前言
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2" data-path="../坚果派介绍.html">
            
                <a href="../坚果派介绍.html">
            
                    
                    2.坚果派介绍
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3" data-path="../chapter2/">
            
                <a href="../chapter2/">
            
                    
                    3.Flutter鸿蒙化
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.1" data-path="../chapter1/01Flutter介绍.html">
            
                <a href="../chapter1/01Flutter介绍.html">
            
                    
                    3.1 Flutter介绍
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.2" data-path="../chapter1/02HarmonyOS与OpenHarmony介绍.html">
            
                <a href="../chapter1/02HarmonyOS与OpenHarmony介绍.html">
            
                    
                    3.2 背景与原理
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.3" data-path="../chapter1/02功能开发.html">
            
                <a href="../chapter1/02功能开发.html">
            
                    
                    3.3 功能开发
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.4" data-path="../chapter1/03Flutter_Engine编译.html">
            
                <a href="../chapter1/03Flutter_Engine编译.html">
            
                    
                    3.4 Flutter Engine编译
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.5" data-path="../chapter1/03FutterEntry使用.html">
            
                <a href="../chapter1/03FutterEntry使用.html">
            
                    
                    3.5 FutterEntry使用
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.6" data-path="../chapter1/04性能调优.html">
            
                <a href="../chapter1/04性能调优.html">
            
                    
                    3.6 性能调优
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.7" data-path="../chapter1/05OHOS平台适配flutter三方库.html">
            
                <a href="../chapter1/05OHOS平台适配flutter三方库.html">
            
                    
                    3.7 OHOS平台适配flutter三方库
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.8" data-path="../chapter1/06如何使用_Flutter_Channel.html">
            
                <a href="../chapter1/06如何使用_Flutter_Channel.html">
            
                    
                    3.8 如何使用Flutter Channel
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.9" data-path="../chapter1/07开发Flutter静态库.html">
            
                <a href="../chapter1/07开发Flutter静态库.html">
            
                    
                    3.9 开发Flutter静态库
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.10" data-path="../chapter1/FAQ.html">
            
                <a href="../chapter1/FAQ.html">
            
                    
                    3.10 FAQ
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.11" data-path="../chapter1/服务.html">
            
                <a href="../chapter1/服务.html">
            
                    
                    3.11 服务
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.12" data-path="../chapter1/资料整理.html">
            
                <a href="../chapter1/资料整理.html">
            
                    
                    3.12 资料整理
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.13" data-path="../chapter2/2.3Impeller渲染引擎.html">
            
                <a href="../chapter2/2.3Impeller渲染引擎.html">
            
                    
                    3.13 Impeller渲染引擎
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.4" data-path="../chapter3/">
            
                <a href="../chapter3/">
            
                    
                    4.Flutter与Dart介绍
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.4.1" data-path="../chapter3/3.1Flutter介绍.html">
            
                <a href="../chapter3/3.1Flutter介绍.html">
            
                    
                    4.1 Flutter介绍
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.2" data-path="../chapter3/3.2Dart介绍.html">
            
                <a href="../chapter3/3.2Dart介绍.html">
            
                    
                    4.2 Dart介绍
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.5" data-path="../chapter4/">
            
                <a href="../chapter4/">
            
                    
                    5.HarmonyOS/OpenHarmony与ArkTS介绍
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.5.1" data-path="../chapter4/4.1HarmonyOS.html">
            
                <a href="../chapter4/4.1HarmonyOS.html">
            
                    
                    5.1 HarmonyOS
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.2" data-path="../chapter4/4.2OpenHarmony.html">
            
                <a href="../chapter4/4.2OpenHarmony.html">
            
                    
                    5.2 OpenHarmony
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.3" data-path="../chapter4/4.3HarmonyOSNEXT.html">
            
                <a href="../chapter4/4.3HarmonyOSNEXT.html">
            
                    
                    5.3 HarmonyOS NEXT
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.4" data-path="../chapter4/4.4ArkTS语言_.html">
            
                <a href="../chapter4/4.4ArkTS语言_.html">
            
                    
                    5.4 ArkTS语言
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.5" data-path="../chapter4/4.5三者的差异.html">
            
                <a href="../chapter4/4.5三者的差异.html">
            
                    
                    5.5 三者的区别与联系
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.6" data-path="../chapter4/4.6从开发者视角看_uniapp_与_Flutter_的差异.html">
            
                <a href="../chapter4/4.6从开发者视角看_uniapp_与_Flutter_的差异.html">
            
                    
                    5.6 从开发者视角看uniapp与Flutter的差异
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.6" data-path="../chapter5/">
            
                <a href="../chapter5/">
            
                    
                    6.鸿蒙Flutter开发环境配置
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.6.1" data-path="../chapter5/5.1windows环境配置.html">
            
                <a href="../chapter5/5.1windows环境配置.html">
            
                    
                    6.1 Windows环境配置
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.2" data-path="../chapter5/5.2mac环境配置.md">
            
                <span>
            
                    
                    6.2 Mac环境配置
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.3" data-path="../chapter5/5.2mac环境配置3.32.html">
            
                <a href="../chapter5/5.2mac环境配置3.32.html">
            
                    
                    6.3 Mac环境配置3.32版本
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.4" data-path="../chapter5/5.3使用_FlutterSDK_3.22.1.html">
            
                <a href="../chapter5/5.3使用_FlutterSDK_3.22.1.html">
            
                    
                    6.4 使用FlutterSDK 3.22.1
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.5" data-path="../chapter5/5.4第一个鸿蒙Flutter应用程序.html">
            
                <a href="../chapter5/5.4第一个鸿蒙Flutter应用程序.html">
            
                    
                    6.5 第一个鸿蒙Flutter应用程序
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.6" data-path="../chapter5/5.5鸿蒙Flutter运行到多平台.html">
            
                <a href="../chapter5/5.5鸿蒙Flutter运行到多平台.html">
            
                    
                    6.6 运行到多平台
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.7" data-path="../chapter5/5.5Mac环境Java配置指南.html">
            
                <a href="../chapter5/5.5Mac环境Java配置指南.html">
            
                    
                    6.7 Mac环境Java配置指南
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.8" data-path="../chapter5/5.6使用最新的fluttersdk配置开发环境.html">
            
                <a href="../chapter5/5.6使用最新的fluttersdk配置开发环境.html">
            
                    
                    6.8 使用最新FlutterSDK配置开发环境
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.9" data-path="../chapter5/5.7OpenHarmony设备运行指导.html">
            
                <a href="../chapter5/5.7OpenHarmony设备运行指导.html">
            
                    
                    6.9 OpenHarmony设备运行指导
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.10" data-path="../chapter5/5.8现有项目支持鸿蒙.html">
            
                <a href="../chapter5/5.8现有项目支持鸿蒙.html">
            
                    
                    6.10 现有Flutter项目支持鸿蒙
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.11" data-path="../chapter5/5.9鸿蒙版Flutter仓库变更.html">
            
                <a href="../chapter5/5.9鸿蒙版Flutter仓库变更.html">
            
                    
                    6.11 鸿蒙版Flutter仓库变更
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.12" data-path="../chapter5/5.10真机与模拟器.html">
            
                <a href="../chapter5/5.10真机与模拟器.html">
            
                    
                    6.12 真机与模拟器
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.13" data-path="../chapter5/5.11使用fvm.html">
            
                <a href="../chapter5/5.11使用fvm.html">
            
                    
                    6.13 使用FVM管理
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.14" data-path="../chapter5/5.12Ma环境FVM安裝指南.html">
            
                <a href="../chapter5/5.12Ma环境FVM安裝指南.html">
            
                    
                    6.14 Mac环境FVM安装指南
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.15" data-path="../chapter5/5.12使用3.27.4构建鸿蒙应用.html">
            
                <a href="../chapter5/5.12使用3.27.4构建鸿蒙应用.html">
            
                    
                    6.15 使用3.27.4构建鸿蒙应用
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.16" data-path="../chapter5/5.13使用_Flutter_SDK_3.27.4构建HarmonyOS应用.html">
            
                <a href="../chapter5/5.13使用_Flutter_SDK_3.27.4构建HarmonyOS应用.html">
            
                    
                    6.16 使用Flutter SDK 3.27.4构建HarmonyOS应用
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.17" data-path="../chapter5/5.14Flutter-OH版本演进规划和分支策略.html">
            
                <a href="../chapter5/5.14Flutter-OH版本演进规划和分支策略.html">
            
                    
                    6.17 Flutter-OH版本演进规划和分支策略
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.18" data-path="../chapter5/5.15mac环境配置3.22版本.html">
            
                <a href="../chapter5/5.15mac环境配置3.22版本.html">
            
                    
                    6.18 mac环境配置3.22版本
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.7" data-path="../chapter6/">
            
                <a href="../chapter6/">
            
                    
                    7.在鸿蒙应用中添加Flutter页面
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.7.1" data-path="../chapter6/6.1如何使用FlutterPage.html">
            
                <a href="../chapter6/6.1如何使用FlutterPage.html">
            
                    
                    7.1 如何使用FlutterPage
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.2" data-path="../chapter6/6.2如何使用混合开发添加跳转_FlutterEntry.html">
            
                <a href="../chapter6/6.2如何使用混合开发添加跳转_FlutterEntry.html">
            
                    
                    7.2 如何使用混合开发添加跳转FlutterEntry
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.3" data-path="../chapter6/6.3在鸿蒙应用中添加Flutter页面.html">
            
                <a href="../chapter6/6.3在鸿蒙应用中添加Flutter页面.html">
            
                    
                    7.3 在鸿蒙应用中添加Flutter页面
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.8" data-path="../chapter7/">
            
                <a href="../chapter7/">
            
                    
                    8.Flutter与HarmonyOS混合开发进阶
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.8.1" data-path="../chapter7/7.1如何使用_FlutterPage.md">
            
                <span>
            
                    
                    8.1 如何使用FlutterPage
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.2" data-path="../chapter7/7.2如何使用混合开发添加跳转_FlutterEntry.md">
            
                <span>
            
                    
                    8.2 如何使用混合开发添加跳转FlutterEntry
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.3" data-path="../chapter7/7.3_harmonyos添加flutter页面跳转时路由的处理.html">
            
                <a href="../chapter7/7.3_harmonyos添加flutter页面跳转时路由的处理.html">
            
                    
                    8.3 harmonyos添加flutter页面跳转时路由的处理
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.4" data-path="../chapter7/7.4使用FlutterChannel实现和Flutter和HarmonyOS交互.html">
            
                <a href="../chapter7/7.4使用FlutterChannel实现和Flutter和HarmonyOS交互.html">
            
                    
                    8.4 使用FlutterChannel实现和Flutter和HarmonyOS交互
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.9" data-path="../chapter8/">
            
                <a href="../chapter8/">
            
                    
                    9.在鸿蒙应用中使用Flutter Channel能力
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.9.1" data-path="../chapter8/8.1如何使用混合开发_module.html">
            
                <a href="../chapter8/8.1如何使用混合开发_module.html">
            
                    
                    9.1 如何使用混合开发module
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.2" data-path="../chapter8/8.2如何使用混合开发添加跳转_FlutterEntry.html">
            
                <a href="../chapter8/8.2如何使用混合开发添加跳转_FlutterEntry.html">
            
                    
                    9.2 如何使用混合开发添加跳转FlutterEntry
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.3" data-path="../chapter8/8.3如何使用lutter和鸿蒙next混合渲染.html">
            
                <a href="../chapter8/8.3如何使用lutter和鸿蒙next混合渲染.html">
            
                    
                    9.3 如何使用Flutter和鸿蒙NEXT混合渲染
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.4" data-path="../chapter8/8.4_混合渲染开发实践:以scan_三方库为例.html">
            
                <a href="../chapter8/8.4_混合渲染开发实践:以scan_三方库为例.html">
            
                    
                    9.4 混合渲染开发实践：以fluttertpc_scan三方库为例
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.5" data-path="../chapter8/8.5如何使用Flutter与鸿蒙通信_FlutterChannel.html">
            
                <a href="../chapter8/8.5如何使用Flutter与鸿蒙通信_FlutterChannel.html">
            
                    
                    9.5 如何使用Flutter与鸿蒙通信FlutterChannel
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.6" data-path="../chapter8/8.7Har包模式引入.html">
            
                <a href="../chapter8/8.7Har包模式引入.html">
            
                    
                    9.6 Har包模式引入
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.7" data-path="../chapter8/8.7源码模式引入.html">
            
                <a href="../chapter8/8.7源码模式引入.html">
            
                    
                    9.7 源码模式引入
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.8" data-path="../chapter8/8.8初始化Flutter.html">
            
                <a href="../chapter8/8.8初始化Flutter.html">
            
                    
                    9.8 初始化Flutter
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.9" data-path="../chapter8/8.9跳转Flutter页面.html">
            
                <a href="../chapter8/8.9跳转Flutter页面.html">
            
                    
                    9.9 跳转Flutter页面
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.10" data-path="../chapter9/">
            
                <a href="../chapter9/">
            
                    
                    10.与原生混合渲染
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.10.1" data-path="../chapter9/9.1flutter鸿蒙化背景.html">
            
                <a href="../chapter9/9.1flutter鸿蒙化背景.html">
            
                    
                    10.1 Flutter鸿蒙化背景
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.10.2" data-path="../chapter9/9.1外接纹理适配.html">
            
                <a href="../chapter9/9.1外接纹理适配.html">
            
                    
                    10.2 Flutter OHOS外接纹理适配简介
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.10.3" data-path="../chapter9/9.2如何使用多引擎_FlutterEngineGroup.html">
            
                <a href="../chapter9/9.2如何使用多引擎_FlutterEngineGroup.html">
            
                    
                    10.3 如何使用多引擎FlutterEngineGroup
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.10.4" data-path="../chapter9/9.3如何使用PlatformView.html">
            
                <a href="../chapter9/9.3如何使用PlatformView.html">
            
                    
                    10.4 如何使用PlatformView
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.10.5" data-path="../chapter9/9.4PlatformView同层渲染方案适配切换指导.html">
            
                <a href="../chapter9/9.4PlatformView同层渲染方案适配切换指导.html">
            
                    
                    10.5 PlatformView同层渲染方案适配切换指导
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.11" data-path="../chapter10/">
            
                <a href="../chapter10/">
            
                    
                    11.开发Flutter静态库
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.11.1" data-path="../chapter10/10.1开发module.html">
            
                <a href="../chapter10/10.1开发module.html">
            
                    
                    11.1开发module
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.2" data-path="../chapter10/10.2开发package.html">
            
                <a href="../chapter10/10.2开发package.html">
            
                    
                    11.2开发package
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.3" data-path="../chapter10/10.3开发plugin.html">
            
                <a href="../chapter10/10.3开发plugin.html">
            
                    
                    11.3开发plugin
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.4" data-path="../chapter10/10.4开发FFI_plugin.html">
            
                <a href="../chapter10/10.4开发FFI_plugin.html">
            
                    
                    11.4开发FFI plugin
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.12" data-path="../chapter11/">
            
                <a href="../chapter11/">
            
                    
                    12.Packages使用指南
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.12.1" data-path="../chapter11/11.1高效使用_Packages指南.html">
            
                <a href="../chapter11/11.1高效使用_Packages指南.html">
            
                    
                    12.1高效使用Packages指南
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.12.2" data-path="../chapter11/11.2发布Packages.html">
            
                <a href="../chapter11/11.2发布Packages.html">
            
                    
                    12.2发布Packages
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.12.3" data-path="../chapter11/11.3使用fvm管理.html">
            
                <a href="../chapter11/11.3使用fvm管理.html">
            
                    
                    12.3使用fvm管理
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.13" data-path="../chapter12/">
            
                <a href="../chapter12/">
            
                    
                    13.鸿蒙适配Flutter三方库
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.13.1" data-path="../chapter12/12.1纯dart库无需迁移.html">
            
                <a href="../chapter12/12.1纯dart库无需迁移.html">
            
                    
                    13.1纯dart库无需迁移
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.13.2" data-path="../chapter12/12.2坚果派已适配的库.html">
            
                <a href="../chapter12/12.2坚果派已适配的库.html">
            
                    
                    13.2坚果派目前适配三方库进展
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.13.3" data-path="../chapter12/12.3适配三方库之FlutterToast.html">
            
                <a href="../chapter12/12.3适配三方库之FlutterToast.html">
            
                    
                    13.3适配三方库之FlutterToast
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.13.4" data-path="../chapter12/12.4适配三方库之udid.html">
            
                <a href="../chapter12/12.4适配三方库之udid.html">
            
                    
                    13.4适配三方库之udid
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.13.5" data-path="../chapter12/12.5适配torch_light.html">
            
                <a href="../chapter12/12.5适配torch_light.html">
            
                    
                    13.5适配torch_light
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.13.6" data-path="../chapter12/12.6适配flutter_native_contact_picker.html">
            
                <a href="../chapter12/12.6适配flutter_native_contact_picker.html">
            
                    
                    13.6适配flutter_native_contact_picker
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.13.7" data-path="../chapter12/12.7适配flutter_timezone.html">
            
                <a href="../chapter12/12.7适配flutter_timezone.html">
            
                    
                    13.7适配flutter_timezone
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.13.8" data-path="../chapter12/12.8适配flutter_exit_app.html">
            
                <a href="../chapter12/12.8适配flutter_exit_app.html">
            
                    
                    13.8适配flutter_exit_app
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.13.9" data-path="../chapter12/12.9适配flutter_phone_direct_caller.html">
            
                <a href="../chapter12/12.9适配flutter_phone_direct_caller.html">
            
                    
                    13.9适配flutter_phone_direct_caller
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.13.10" data-path="../chapter12/12.10适配flutter_app_icon_badge.html">
            
                <a href="../chapter12/12.10适配flutter_app_icon_badge.html">
            
                    
                    13.10适配flutter_app_icon_badge
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.13.11" data-path="../chapter12/12.10适配screen_capture_event.html">
            
                <a href="../chapter12/12.10适配screen_capture_event.html">
            
                    
                    13.11适配screen_capture_event
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.13.12" data-path="../chapter12/12.10适配screenshot_callback.html">
            
                <a href="../chapter12/12.10适配screenshot_callback.html">
            
                    
                    13.12适配screenshot_callback
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.13.13" data-path="../chapter12/12.11适配memory_info.html">
            
                <a href="../chapter12/12.11适配memory_info.html">
            
                    
                    13.13适配memory_info
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.13.14" data-path="../chapter12/12.11适配screen_brightness.html">
            
                <a href="../chapter12/12.11适配screen_brightness.html">
            
                    
                    13.14适配screen_brightness
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.13.15" data-path="../chapter12/12.12适配battey_level_plus.html">
            
                <a href="../chapter12/12.12适配battey_level_plus.html">
            
                    
                    13.15适配battey_level_plus
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.13.16" data-path="../chapter12/12.13适配flutter_badge_plus.html">
            
                <a href="../chapter12/12.13适配flutter_badge_plus.html">
            
                    
                    13.16适配flutter_badge_plus
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.13.17" data-path="../chapter12/12.14适配flutter_native_contact_picker_plus.html">
            
                <a href="../chapter12/12.14适配flutter_native_contact_picker_plus.html">
            
                    
                    13.17适配flutter_native_contact_picker_plus
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.13.18" data-path="../chapter12/12.15获取设备随机存取存储器_(RAM">
            
                <span>
            
                    
                    13.18获取设备随机存取存储器 (RAM) 大小
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.13.19" data-path="../chapter12/12.16适配system_info_plus.html">
            
                <a href="../chapter12/12.16适配system_info_plus.html">
            
                    
                    13.19适配system_info_plus
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.13.20" data-path="../chapter12/12.17适配app_badge_plus.html">
            
                <a href="../chapter12/12.17适配app_badge_plus.html">
            
                    
                    13.20适配app_badge_plus
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.13.21" data-path="../chapter12/12.18适配flutter_native_contact_picker_plus.md">
            
                <span>
            
                    
                    13.21适配flutter_native_contact_picker_plus
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.13.22" data-path="../chapter12/12.19device_info_plus插件适配.html">
            
                <a href="../chapter12/12.19device_info_plus插件适配.html">
            
                    
                    13.22device_info_plus插件适配
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.13.23" data-path="../chapter12/12.20package_info_plus.html">
            
                <a href="../chapter12/12.20package_info_plus.html">
            
                    
                    13.23package_info_plus
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.13.24" data-path="../chapter12/12.21NetworkInfo适配.html">
            
                <a href="../chapter12/12.21NetworkInfo适配.html">
            
                    
                    13.24NetworkInfo适配
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.13.25" data-path="../chapter12/12.22url_luacher适配指南.html">
            
                <a href="../chapter12/12.22url_luacher适配指南.html">
            
                    
                    13.25url_luacher适配指南
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.13.26" data-path="../chapter12/di.html">
            
                <a href="../chapter12/di.html">
            
                    
                    13.26依赖注入
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.14" data-path="./">
            
                <a href="./">
            
                    
                    14.性能优化与调试
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter active" data-level="1.14.1" data-path="13.1环境配置.html">
            
                <a href="13.1环境配置.html">
            
                    
                    14.1 环境配置
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.14.2" data-path="13.2Flutter_开发鸿蒙应用时三方库引入指南.html">
            
                <a href="13.2Flutter_开发鸿蒙应用时三方库引入指南.html">
            
                    
                    14.2 Flutter开发鸿蒙应用时三方库引入指南
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.14.3" data-path="13.2性能分析定界指南.html">
            
                <a href="13.2性能分析定界指南.html">
            
                    
                    14.3 性能分析定界指南
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.14.4" data-path="13.3梳理线程顺序.html">
            
                <a href="13.3梳理线程顺序.html">
            
                    
                    14.4 性能分析第一步-梳理线程顺序
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.14.5" data-path="13.4滑动响应时延.html">
            
                <a href="13.4滑动响应时延.html">
            
                    
                    14.5 性能分析-滑动响应时延
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.14.6" data-path="13.5帧渲染跟踪.html">
            
                <a href="13.5帧渲染跟踪.html">
            
                    
                    14.6 性能分析-帧渲染跟踪
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.14.7" data-path="13.6如何调试代码.html">
            
                <a href="13.6如何调试代码.html">
            
                    
                    14.7 如何调试代码
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.14.8" data-path="13.7在_Flutter_中实现鸿蒙平台引入_package，其他平台排除.html">
            
                <a href="13.7在_Flutter_中实现鸿蒙平台引入_package，其他平台排除.html">
            
                    
                    14.8 在Flutter中实现鸿蒙平台引入package，其他平台排除
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.14.9" data-path="运行.html">
            
                <a href="运行.html">
            
                    
                    14.9 运行
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.15" data-path="../chapter14/">
            
                <a href="../chapter14/">
            
                    
                    15.迁移实战
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.15.1" data-path="../chapter14/14.1拨打电话.html">
            
                <a href="../chapter14/14.1拨打电话.html">
            
                    
                    15.1 拨打电话
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.15.2" data-path="../chapter14/14.2使用url_launcher.html">
            
                <a href="../chapter14/14.2使用url_launcher.html">
            
                    
                    15.2 使用url_launcher
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.15.3" data-path="../chapter14/14.3flutter开发鸿蒙PC应用.html">
            
                <a href="../chapter14/14.3flutter开发鸿蒙PC应用.html">
            
                    
                    15.3 flutter开发鸿蒙PC应用
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.15.4" data-path="../chapter14/14.4探索适用于鸿蒙原生应用的跨平台开发框架.html">
            
                <a href="../chapter14/14.4探索适用于鸿蒙原生应用的跨平台开发框架.html">
            
                    
                    15.4 探索适用于鸿蒙原生应用的跨平台开发框架
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.15.5" data-path="../chapter14/14.5保存图片.html">
            
                <a href="../chapter14/14.5保存图片.html">
            
                    
                    15.5 保存图片
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.15.6" data-path="../chapter14/14.6使用url.html">
            
                <a href="../chapter14/14.6使用url.html">
            
                    
                    15.6 使用url
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.15.7" data-path="../chapter14/今日时鉴.html">
            
                <a href="../chapter14/今日时鉴.html">
            
                    
                    15.7 今日时鉴
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.16" data-path="../chapter15/">
            
                <a href="../chapter15/">
            
                    
                    16.上架审核
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.16.1" data-path="../chapter15/15.1应用上架流程.html">
            
                <a href="../chapter15/15.1应用上架流程.html">
            
                    
                    16.1应用上架流程
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.16.2" data-path="../chapter15/15.2审核注意事项.html">
            
                <a href="../chapter15/15.2审核注意事项.html">
            
                    
                    16.2审核注意事项
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.17" data-path="../chapter16/">
            
                <a href="../chapter16/">
            
                    
                    17.FAQ
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.17.1" data-path="../chapter16/16.1ohos应用编译相关问题.html">
            
                <a href="../chapter16/16.1ohos应用编译相关问题.html">
            
                    
                    17.1 ohos应用编译相关问题
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.17.2" data-path="../chapter16/16.2原有项目迁移鸿蒙.html">
            
                <a href="../chapter16/16.2原有项目迁移鸿蒙.html">
            
                    
                    17.2 原有项目迁移鸿蒙
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.17.3" data-path="../chapter16/16.3权限相关.html">
            
                <a href="../chapter16/16.3权限相关.html">
            
                    
                    17.3 权限相关
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.17.4" data-path="../chapter16/16.4Flutter_3.22.0-ohos_0.1.0_Release发布.html">
            
                <a href="../chapter16/16.4Flutter_3.22.0-ohos_0.1.0_Release发布.html">
            
                    
                    17.4 Flutter 3.22.0-ohos 0.1.0 Release发布
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.17.5" data-path="../chapter16/16.5环境相关问题.html">
            
                <a href="../chapter16/16.5环境相关问题.html">
            
                    
                    17.5 环境相关问题
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.17.6" data-path="../chapter16/16.6ohos代码开发相关问题.html">
            
                <a href="../chapter16/16.6ohos代码开发相关问题.html">
            
                    
                    17.6 ohos代码开发相关问题
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.17.7" data-path="../chapter16/16.7解析flutter相关的cppcrash堆栈.html">
            
                <a href="../chapter16/16.7解析flutter相关的cppcrash堆栈.html">
            
                    
                    17.7 解析flutter相关的cppcrash堆栈
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.17.8" data-path="../chapter16/16.8ohos引擎产物编译相关问题.html">
            
                <a href="../chapter16/16.8ohos引擎产物编译相关问题.html">
            
                    
                    17.8 ohos引擎产物编译相关问题
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.17.9" data-path="../chapter16/ffi.html">
            
                <a href="../chapter16/ffi.html">
            
                    
                    17.9 FFI
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.17.10" data-path="../chapter16/三方库相关.html">
            
                <a href="../chapter16/三方库相关.html">
            
                    
                    17.10 三方库相关
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.18" data-path="../chapter17/">
            
                <a href="../chapter17/">
            
                    
                    18.阅读更多
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.18.1" data-path="../chapter17/17.1版本.html">
            
                <a href="../chapter17/17.1版本.html">
            
                    
                    18.1 适配HarmonyOS Next API16的鸿蒙版Flutter 3.22.0版本发布
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.18.2" data-path="../chapter17/17.2平台判断与问题处理指南.html">
            
                <a href="../chapter17/17.2平台判断与问题处理指南.html">
            
                    
                    18.2 平台判断与问题处理指南
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.18.3" data-path="../chapter17/17.3鸿蒙版Flutter_3.22.0版本正式发布(1.0Release">
            
                <span>
            
                    
                    18.3 鸿蒙版Flutter 3.22.0版本正式发布(1.0Release)
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.18.4" data-path="../chapter17/17.4优化_ohos_构建过程.html">
            
                <a href="../chapter17/17.4优化_ohos_构建过程.html">
            
                    
                    18.4 优化ohos构建过程
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.18.5" data-path="../chapter17/17.5新增use-application-binary命令.html">
            
                <a href="../chapter17/17.5新增use-application-binary命令.html">
            
                    
                    18.5 新增use-application-binary命令
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.18.6" data-path="../chapter17/17.6Flutter_3.22.0-ohos_1.0.1_Release发布.md">
            
                <span>
            
                    
                    18.6 Flutter 3.22.0-ohos 1.0.1 Release发布
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.18.7" data-path="../chapter17/17.7关于插件参数传递.html">
            
                <a href="../chapter17/17.7关于插件参数传递.html">
            
                    
                    18.7 关于插件参数传递
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.18.8" data-path="../chapter17/17.8关于鸿蒙版Flutter的_context_.html">
            
                <a href="../chapter17/17.8关于鸿蒙版Flutter的_context_.html">
            
                    
                    18.8 关于鸿蒙版Flutter的context
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.18.9" data-path="../chapter17/5.1API_18正式发布.html">
            
                <a href="../chapter17/5.1API_18正式发布.html">
            
                    
                    18.9 5.1API 18正式发布
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.18.10" data-path="../chapter17/5.1完整.html">
            
                <a href="../chapter17/5.1完整.html">
            
                    
                    18.10 5.1完整
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.19" data-path="../chapter18/">
            
                <a href="../chapter18/">
            
                    
                    19.多设备能力
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.19.1" data-path="../chapter18/18.1多设备自适应布局.html">
            
                <a href="../chapter18/18.1多设备自适应布局.html">
            
                    
                    19.1 自适应布局
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.19.2" data-path="../chapter18/18.2多设备响应式布局.html">
            
                <a href="../chapter18/18.2多设备响应式布局.html">
            
                    
                    19.2 响应式布局
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.19.3" data-path="../chapter18/18.3多设备典型布局场景.html">
            
                <a href="../chapter18/18.3多设备典型布局场景.html">
            
                    
                    19.3 典型布局场景
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.19.4" data-path="../chapter18/18.4交互归一能力.html">
            
                <a href="../chapter18/18.4交互归一能力.html">
            
                    
                    19.4 交互归一能力
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.20" data-path="../chapter19/README.md">
            
                <span>
            
                    
                    20.关于未来
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.21" data-path="../chapter20/">
            
                <a href="../chapter20/">
            
                    
                    21.版本更新
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.21.1" data-path="../chapter20/20.1鸿蒙版Flutter_3.22.0版本正式发布(1.0Release">
            
                <span>
            
                    
                    21.1 鸿蒙版Flutter 3.22.0版本正式发布(1.0Release)
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.21.2" data-path="../chapter20/20.2Flutter_3.22.0-ohos_1.0.1_Release发布.html">
            
                <a href="../chapter20/20.2Flutter_3.22.0-ohos_1.0.1_Release发布.html">
            
                    
                    21.2 Flutter 3.22.0-ohos 1.0.1 Release发布
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.21.3" data-path="../chapter20/20.3发布新版本.html">
            
                <a href="../chapter20/20.3发布新版本.html">
            
                    
                    21.3 发布新版本
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.21.4" data-path="../chapter20/20.4Flutter3.22.0-ohos-1.0.4发布.html">
            
                <a href="../chapter20/20.4Flutter3.22.0-ohos-1.0.4发布.html">
            
                    
                    21.4 Flutter3.22.0-ohos-1.0.4发布
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.21.5" data-path="../chapter20/20.5如何升级插件升级最新的鸿蒙版_flutter.html">
            
                <a href="../chapter20/20.5如何升级插件升级最新的鸿蒙版_flutter.html">
            
                    
                    21.5 如何升级插件升级最新的鸿蒙版flutter
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.21.6" data-path="../chapter20/20.6各版本的鸿蒙版flutter如何获取.html">
            
                <a href="../chapter20/20.6各版本的鸿蒙版flutter如何获取.html">
            
                    
                    21.6 各版本的鸿蒙版flutter如何获取
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.21.7" data-path="../chapter20/20.7新版本发布.html">
            
                <a href="../chapter20/20.7新版本发布.html">
            
                    
                    21.7 新版本发布
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.22" data-path="../致谢.html">
            
                <a href="../致谢.html">
            
                    
                    致谢
            
                </a>
            

            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            本书使用 GitBook 发布
        </a>
    </li>
</ul>

</nav>
     
  </div>

  <!-- Content nav -->
  <div class="book-anchor">
    <div class="book-anchor-title"></div>

    <div class="book-anchor-body"></div>
  </div>

  <div class="book-body">
    
    <div class="body-inner">
       

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href=".." >14.1 环境配置</a>
    </h1>
</div>



      <div class="page-wrapper" tabindex="-1" role="main">
        <div class="page-inner">
          
<div class="search-plus" id="book-search-results">
    <div class="search-noresults">
    
          <section class="normal markdown-section">
             <h1 id="&#x73AF;&#x5883;&#x914D;&#x7F6E;&#x4E0E;&#x5E38;&#x89C1;&#x95EE;&#x9898;&#x89E3;&#x51B3;">&#x73AF;&#x5883;&#x914D;&#x7F6E;&#x4E0E;&#x5E38;&#x89C1;&#x95EE;&#x9898;&#x89E3;&#x51B3;</h1>
<p>&#x672C;&#x7AE0;&#x5C06;&#x8BE6;&#x7EC6;&#x4ECB;&#x7ECD;Flutter&#x9E3F;&#x8499;&#x5F00;&#x53D1;&#x73AF;&#x5883;&#x7684;&#x914D;&#x7F6E;&#x8981;&#x70B9;&#xFF0C;&#x4EE5;&#x53CA;&#x5728;&#x5F00;&#x53D1;&#x8FC7;&#x7A0B;&#x4E2D;&#x7ECF;&#x5E38;&#x9047;&#x5230;&#x7684;&#x95EE;&#x9898;&#x548C;&#x89E3;&#x51B3;&#x65B9;&#x6848;&#x3002;</p>
<h2 id="&#x6982;&#x8FF0;">&#x6982;&#x8FF0;</h2>
<p>&#x5728;Flutter&#x9E3F;&#x8499;&#x5F00;&#x53D1;&#x8FC7;&#x7A0B;&#x4E2D;&#xFF0C;&#x5F00;&#x53D1;&#x8005;&#x53EF;&#x80FD;&#x4F1A;&#x9047;&#x5230;&#x7B7E;&#x540D;&#x914D;&#x7F6E;&#x3001;&#x8BBE;&#x5907;&#x8FDE;&#x63A5;&#x3001;&#x4F9D;&#x8D56;&#x4E0B;&#x8F7D;&#x7B49;&#x5404;&#x79CD;&#x73AF;&#x5883;&#x76F8;&#x5173;&#x7684;&#x95EE;&#x9898;&#x3002;&#x672C;&#x7AE0;&#x5C06;&#x7CFB;&#x7EDF;&#x6027;&#x5730;&#x4ECB;&#x7ECD;&#x8FD9;&#x4E9B;&#x95EE;&#x9898;&#x7684;&#x89E3;&#x51B3;&#x65B9;&#x6CD5;&#xFF0C;&#x5E2E;&#x52A9;&#x5F00;&#x53D1;&#x8005;&#x5FEB;&#x901F;&#x642D;&#x5EFA;&#x7A33;&#x5B9A;&#x7684;&#x5F00;&#x53D1;&#x73AF;&#x5883;&#x3002;</p>
<h2 id="&#x7B7E;&#x540D;&#x914D;&#x7F6E;&#x95EE;&#x9898;&#x89E3;&#x51B3;">&#x7B7E;&#x540D;&#x914D;&#x7F6E;&#x95EE;&#x9898;&#x89E3;&#x51B3;</h2>
<h3 id="&#x5E38;&#x89C1;&#x7B7E;&#x540D;&#x9519;&#x8BEF;">&#x5E38;&#x89C1;&#x7B7E;&#x540D;&#x9519;&#x8BEF;</h3>
<p>&#x5728;&#x6267;&#x884C;<code>flutter build hap --debug</code>&#x65F6;&#xFF0C;&#x53EF;&#x80FD;&#x4F1A;&#x9047;&#x5230;&#x4EE5;&#x4E0B;&#x9519;&#x8BEF;&#x4FE1;&#x606F;&#xFF1A;</p>
<pre><code>&gt; hvigor WARN: Will skip sign &apos;hos_hap&apos;. No signingConfigs profile is configured in current project.
  If needed, configure the signingConfigs in /path/to/project/ohos/build-profile.json5.

&#x8BF7;&#x901A;&#x8FC7;DevEco Studio&#x6253;&#x5F00;ohos&#x5DE5;&#x7A0B;&#x540E;&#x914D;&#x7F6E;&#x8C03;&#x8BD5;&#x7B7E;&#x540D;
(File -&gt; Project Structure -&gt; Signing Configs &#x52FE;&#x9009;Automatically generate signature)
</code></pre><h3 id="&#x5B8C;&#x6574;&#x7684;&#x6784;&#x5EFA;&#x8F93;&#x51FA;&#x793A;&#x4F8B;">&#x5B8C;&#x6574;&#x7684;&#x6784;&#x5EFA;&#x8F93;&#x51FA;&#x793A;&#x4F8B;</h3>
<pre><code class="lang-bash">&gt; hvigor Finished :entry:default@CompileArkTS... after 6 s 909 ms 
&gt; hvigor Finished :entry:default@GeneratePkgModuleJson... after 1 ms 
&gt; hvigor Finished :entry:default@PackageHap... after 504 ms 
&gt; hvigor WARN: Will skip sign <span class="hljs-string">&apos;hos_hap&apos;</span>. No signingConfigs profile is configured <span class="hljs-keyword">in</span> current project.
  If needed, configure the signingConfigs <span class="hljs-keyword">in</span> /Users/jianguo/Desktop/gitbook/gitbook_flutter/demo1/ohos/build-profile.json5.
&gt; hvigor Finished :entry:default@SignHap... after 1 ms 
&gt; hvigor Finished :entry:assembleHap... after 1 ms 
&gt; hvigor BUILD SUCCESSFUL <span class="hljs-keyword">in</span> 8 s 739 ms 

hvigorw assembleHap --no-daemon invoke success.
</code></pre>
<h3 id="&#x89E3;&#x51B3;&#x65B9;&#x6848;">&#x89E3;&#x51B3;&#x65B9;&#x6848;</h3>
<p><strong>&#x65B9;&#x6CD5;&#x4E00;&#xFF1A;&#x4F7F;&#x7528;DevEco Studio&#x914D;&#x7F6E;&#xFF08;&#x63A8;&#x8350;&#xFF09;</strong></p>
<ol>
<li><p><strong>&#x6253;&#x5F00;DevEco Studio</strong></p>
<ul>
<li>&#x542F;&#x52A8;DevEco Studio</li>
<li>&#x9009;&#x62E9; <code>Open</code> &#x6253;&#x5F00;&#x73B0;&#x6709;&#x9879;&#x76EE;</li>
<li>&#x9009;&#x62E9;&#x9879;&#x76EE;&#x4E2D;&#x7684; <code>ohos</code> &#x76EE;&#x5F55;&#xFF08;<strong>&#x6CE8;&#x610F;&#xFF1A;&#x662F;ohos&#x76EE;&#x5F55;&#xFF0C;&#x4E0D;&#x662F;&#x9879;&#x76EE;&#x6839;&#x76EE;&#x5F55;</strong>&#xFF09;</li>
</ul>
</li>
<li><p><strong>&#x914D;&#x7F6E;&#x81EA;&#x52A8;&#x7B7E;&#x540D;</strong></p>
<ul>
<li>&#x8FDB;&#x5165;&#x83DC;&#x5355;&#xFF1A;<code>File</code> &#x2192; <code>Project Structure</code></li>
<li>&#x5728;&#x5DE6;&#x4FA7;&#x9762;&#x677F;&#x9009;&#x62E9; <code>Signing Configs</code></li>
<li>&#x52FE;&#x9009; <code>Automatically generate signature</code></li>
<li>&#x70B9;&#x51FB; <code>Apply</code> &#x548C; <code>OK</code> &#x4FDD;&#x5B58;&#x914D;&#x7F6E;</li>
</ul>
</li>
</ol>
<p><img src="https://luckly007.oss-cn-beijing.aliyuncs.com/uPic/image-20241031173142703.png" alt="DevEco Studio&#x7B7E;&#x540D;&#x914D;&#x7F6E;&#x754C;&#x9762;"></p>
<p><strong>&#x65B9;&#x6CD5;&#x4E8C;&#xFF1A;&#x624B;&#x52A8;&#x914D;&#x7F6E;build-profile.json5</strong></p>
<p>&#x5982;&#x679C;&#x65E0;&#x6CD5;&#x4F7F;&#x7528;DevEco Studio&#xFF0C;&#x53EF;&#x4EE5;&#x624B;&#x52A8;&#x7F16;&#x8F91;&#x914D;&#x7F6E;&#x6587;&#x4EF6;&#xFF1A;</p>
<pre><code class="lang-json5">{
  &quot;app&quot;: {
    &quot;signingConfigs&quot;: [
      {
        &quot;name&quot;: &quot;default&quot;,
        &quot;type&quot;: &quot;HarmonyOS&quot;,
        &quot;material&quot;: {
          &quot;certpath&quot;: &quot;path/to/cert.p12&quot;,
          &quot;storePassword&quot;: &quot;000000&quot;,
          &quot;keyAlias&quot;: &quot;debugKey&quot;,
          &quot;keyPassword&quot;: &quot;000000&quot;,
          &quot;profile&quot;: &quot;path/to/profile.p7b&quot;,
          &quot;signAlg&quot;: &quot;SHA256withECDSA&quot;,
          &quot;storeFile&quot;: &quot;path/to/keystore.p12&quot;
        }
      }
    ]
  },
  &quot;modules&quot;: [
    {
      &quot;name&quot;: &quot;entry&quot;,
      &quot;srcPath&quot;: &quot;./entry&quot;,
      &quot;targets&quot;: [
        {
          &quot;name&quot;: &quot;default&quot;,
          &quot;applyToProducts&quot;: [&quot;default&quot;],
          &quot;signingConfig&quot;: &quot;default&quot;
        }
      ]
    }
  ]
}
</code></pre>
<h3 id="&#x9A8C;&#x8BC1;&#x7B7E;&#x540D;&#x914D;&#x7F6E;">&#x9A8C;&#x8BC1;&#x7B7E;&#x540D;&#x914D;&#x7F6E;</h3>
<p>&#x914D;&#x7F6E;&#x5B8C;&#x6210;&#x540E;&#xFF0C;&#x91CD;&#x65B0;&#x6267;&#x884C;&#x6784;&#x5EFA;&#x547D;&#x4EE4;&#x9A8C;&#x8BC1;&#xFF1A;</p>
<pre><code class="lang-bash">flutter build hap --debug
</code></pre>
<p>&#x6210;&#x529F;&#x7684;&#x8F93;&#x51FA;&#x5E94;&#x8BE5;&#x5305;&#x542B;&#xFF1A;</p>
<pre><code>&#x2713; Built ohos/entry/build/default/outputs/default/entry-default-signed.hap
</code></pre><h2 id="&#x9E3F;&#x8499;&#x771F;&#x673A;&#x8FD0;&#x884C;flutter&#x9879;&#x76EE;">&#x9E3F;&#x8499;&#x771F;&#x673A;&#x8FD0;&#x884C;Flutter&#x9879;&#x76EE;</h2>
<h3 id="&#x8BBE;&#x5907;&#x68C0;&#x6D4B;&#x548C;&#x8FDE;&#x63A5;">&#x8BBE;&#x5907;&#x68C0;&#x6D4B;&#x548C;&#x8FDE;&#x63A5;</h3>
<p><strong>1. &#x68C0;&#x67E5;&#x8FDE;&#x63A5;&#x7684;&#x8BBE;&#x5907;</strong></p>
<p>&#x4F7F;&#x7528;&#x4EE5;&#x4E0B;&#x547D;&#x4EE4;&#x68C0;&#x67E5;&#x6240;&#x6709;&#x53EF;&#x7528;&#x8BBE;&#x5907;&#xFF1A;</p>
<pre><code class="lang-bash">flutter devices
</code></pre>
<p><strong>&#x8F93;&#x51FA;&#x793A;&#x4F8B;&#xFF1A;</strong></p>
<pre><code>4 connected devices:

127.0.0.1:5555 (mobile)   &#x2022; 127.0.0.1:5555   &#x2022; ohos-arm64     &#x2022; Ohos OpenHarmony-5.0.1.73 (API 13)
9CN0223901000559 (mobile) &#x2022; 9CN0223901000559 &#x2022; ohos-arm64     &#x2022; Ohos OpenHarmony-5.0.1.73 (API 13)
macOS (desktop)           &#x2022; macos            &#x2022; darwin-arm64   &#x2022; macOS 13.4.1 22F82 darwin-arm64
Chrome (web)              &#x2022; chrome           &#x2022; web-javascript &#x2022; Google Chrome 130.0.6723.71
</code></pre><p><strong>2. &#x8BBE;&#x5907;&#x7C7B;&#x578B;&#x8BF4;&#x660E;</strong></p>
<ul>
<li><strong>ohos-arm64</strong>&#xFF1A;&#x9E3F;&#x8499;/OpenHarmony&#x8BBE;&#x5907;&#xFF08;&#x771F;&#x673A;&#x548C;&#x6A21;&#x62DF;&#x5668;&#xFF09;</li>
<li><strong>darwin-arm64</strong>&#xFF1A;macOS&#x684C;&#x9762;&#x8BBE;&#x5907;</li>
<li><strong>web-javascript</strong>&#xFF1A;Web&#x6D4F;&#x89C8;&#x5668;</li>
</ul>
<h3 id="&#x5E94;&#x7528;&#x8FD0;&#x884C;&#x65B9;&#x5F0F;">&#x5E94;&#x7528;&#x8FD0;&#x884C;&#x65B9;&#x5F0F;</h3>
<p><strong>&#x65B9;&#x5F0F;&#x4E00;&#xFF1A;&#x76F4;&#x63A5;&#x8FD0;&#x884C;&#xFF08;&#x63A8;&#x8350;&#xFF09;</strong></p>
<p>&#x8FD9;&#x662F;&#x6700;&#x7B80;&#x5355;&#x7684;&#x65B9;&#x5F0F;&#xFF0C;Flutter&#x4F1A;&#x81EA;&#x52A8;&#x5904;&#x7406;&#x7F16;&#x8BD1;&#x548C;&#x5B89;&#x88C5;&#xFF1A;</p>
<pre><code class="lang-bash">flutter run --debug <span class="hljs-_">-d</span> &lt;&#x8BBE;&#x5907;ID&gt;
</code></pre>
<p><strong>&#x5177;&#x4F53;&#x793A;&#x4F8B;&#xFF1A;</strong></p>
<pre><code class="lang-bash">flutter run --debug <span class="hljs-_">-d</span> 9CN0223901000559
</code></pre>
<p><strong>&#x4F18;&#x52BF;&#xFF1A;</strong></p>
<ul>
<li>&#x652F;&#x6301;&#x70ED;&#x91CD;&#x8F7D;&#x529F;&#x80FD;</li>
<li>&#x5B9E;&#x65F6;&#x67E5;&#x770B;&#x65E5;&#x5FD7;&#x8F93;&#x51FA;</li>
<li>&#x81EA;&#x52A8;&#x5904;&#x7406;&#x4F9D;&#x8D56;&#x548C;&#x6784;&#x5EFA;</li>
</ul>
<p><strong>&#x65B9;&#x5F0F;&#x4E8C;&#xFF1A;&#x5206;&#x6B65;&#x7F16;&#x8BD1;&#x5B89;&#x88C5;</strong></p>
<p>&#x5148;&#x7F16;&#x8BD1;HAP&#x5305;&#xFF0C;&#x518D;&#x624B;&#x52A8;&#x5B89;&#x88C5;&#xFF1A;</p>
<p><strong>1. &#x7F16;&#x8BD1;HAP&#x5305;&#xFF1A;</strong></p>
<pre><code class="lang-bash">flutter build hap --debug
</code></pre>
<p><strong>2. &#x5B89;&#x88C5;&#x5230;&#x8BBE;&#x5907;&#xFF1A;</strong></p>
<pre><code class="lang-bash">hdc -t &lt;&#x8BBE;&#x5907;ID&gt; install &lt;HAP&#x6587;&#x4EF6;&#x8DEF;&#x5F84;&gt;
</code></pre>
<p><strong>&#x5B8C;&#x6574;&#x793A;&#x4F8B;&#xFF1A;</strong></p>
<pre><code class="lang-bash">flutter build hap --debug
hdc -t 9CN0223901000559 install ohos/entry/build/default/outputs/default/entry-default-signed.hap
</code></pre>
<h3 id="&#x8FD0;&#x884C;&#x9A8C;&#x8BC1;">&#x8FD0;&#x884C;&#x9A8C;&#x8BC1;</h3>
<p>&#x6210;&#x529F;&#x8FD0;&#x884C;&#x540E;&#xFF0C;&#x60A8;&#x5E94;&#x8BE5;&#x80FD;&#x770B;&#x5230;&#xFF1A;</p>
<ol>
<li>&#x8BBE;&#x5907;&#x4E0A;&#x663E;&#x793A;Flutter&#x5E94;&#x7528;&#x754C;&#x9762;</li>
<li>&#x7EC8;&#x7AEF;&#x663E;&#x793A;&#x8FDE;&#x63A5;&#x6210;&#x529F;&#x4FE1;&#x606F;</li>
<li>&#x652F;&#x6301;&#x70ED;&#x91CD;&#x8F7D;&#x529F;&#x80FD;&#xFF08;&#x65B9;&#x5F0F;&#x4E00;&#xFF09;</li>
</ol>
<h2 id="&#x4F9D;&#x8D56;&#x7BA1;&#x7406;&#x95EE;&#x9898;&#x89E3;&#x51B3;">&#x4F9D;&#x8D56;&#x7BA1;&#x7406;&#x95EE;&#x9898;&#x89E3;&#x51B3;</h2>
<h3 id="pub-upgrade&#x5E38;&#x89C1;&#x95EE;&#x9898;">pub upgrade&#x5E38;&#x89C1;&#x95EE;&#x9898;</h3>
<p>&#x5728;Flutter&#x9E3F;&#x8499;&#x5F00;&#x53D1;&#x4E2D;&#xFF0C;<code>flutter pub get</code>&#x548C;<code>flutter pub upgrade</code>&#x662F;&#x5E38;&#x7528;&#x7684;&#x4F9D;&#x8D56;&#x7BA1;&#x7406;&#x547D;&#x4EE4;&#xFF0C;&#x4F46;&#x53EF;&#x80FD;&#x4F1A;&#x9047;&#x5230;&#x4EE5;&#x4E0B;&#x95EE;&#x9898;&#xFF1A;</p>
<h4 id="&#x95EE;&#x9898;1&#xFF1A;pub-upgrade&#x8017;&#x65F6;&#x8F83;&#x957F;">&#x95EE;&#x9898;1&#xFF1A;pub upgrade&#x8017;&#x65F6;&#x8F83;&#x957F;</h4>
<p><strong>&#x73B0;&#x8C61;&#xFF1A;</strong> &#x6267;&#x884C;<code>flutter pub upgrade</code>&#x6216;<code>flutter pub get</code>&#x65F6;&#x957F;&#x65F6;&#x95F4;&#x65E0;&#x54CD;&#x5E94;</p>
<p><strong>&#x539F;&#x56E0;&#x5206;&#x6790;&#xFF1A;</strong></p>
<ul>
<li>&#x7F51;&#x7EDC;&#x8FDE;&#x63A5;&#x4E0D;&#x7A33;&#x5B9A;</li>
<li>&#x9996;&#x6B21;&#x4E0B;&#x8F7D;&#x9700;&#x8981;&#x62C9;&#x53D6;&#x5927;&#x91CF;&#x6587;&#x4EF6;</li>
<li>&#x955C;&#x50CF;&#x6E90;&#x54CD;&#x5E94;&#x901F;&#x5EA6;&#x6162;</li>
<li>&#x7F13;&#x5B58;&#x6587;&#x4EF6;&#x635F;&#x574F;</li>
</ul>
<p><strong>&#x89E3;&#x51B3;&#x65B9;&#x6848;&#xFF1A;</strong></p>
<p><strong>&#x65B9;&#x6848;1&#xFF1A;&#x68C0;&#x67E5;&#x7F51;&#x7EDC;&#x8FDE;&#x63A5;</strong></p>
<pre><code class="lang-bash"><span class="hljs-comment"># &#x6D4B;&#x8BD5;&#x7F51;&#x7EDC;&#x8FDE;&#x63A5;</span>
ping pub.dev
ping storage.googleapis.com
</code></pre>
<p><strong>&#x65B9;&#x6848;2&#xFF1A;&#x6E05;&#x7406;&#x7F13;&#x5B58;&#x91CD;&#x8BD5;</strong></p>
<pre><code class="lang-bash"><span class="hljs-comment"># &#x5220;&#x9664;Flutter&#x7F13;&#x5B58;</span>
rm -rf flutter_flutter/bin/cache

<span class="hljs-comment"># &#x91CD;&#x65B0;&#x83B7;&#x53D6;&#x4F9D;&#x8D56;</span>
flutter pub get
</code></pre>
<p><strong>&#x65B9;&#x6848;3&#xFF1A;&#x66F4;&#x6362;&#x955C;&#x50CF;&#x6E90;</strong></p>
<p>&#x8BBE;&#x7F6E;&#x56FD;&#x5185;&#x955C;&#x50CF;&#x6E90;&#x4EE5;&#x63D0;&#x9AD8;&#x4E0B;&#x8F7D;&#x901F;&#x5EA6;&#xFF1A;</p>
<pre><code class="lang-bash"><span class="hljs-comment"># &#x4E34;&#x65F6;&#x8BBE;&#x7F6E;&#x73AF;&#x5883;&#x53D8;&#x91CF;</span>
<span class="hljs-built_in">export</span> PUB_HOSTED_URL=https://mirrors.tuna.tsinghua.edu.cn/dart-pub
<span class="hljs-built_in">export</span> FLUTTER_STORAGE_BASE_URL=https://mirrors.tuna.tsinghua.edu.cn/flutter

<span class="hljs-comment"># &#x7136;&#x540E;&#x6267;&#x884C;</span>
flutter pub get
</code></pre>
<p><strong>&#x6C38;&#x4E45;&#x914D;&#x7F6E;&#xFF08;&#x63A8;&#x8350;&#xFF09;&#xFF1A;</strong></p>
<p>&#x5728;<code>~/.bash_profile</code>&#x6216;<code>~/.zshrc</code>&#x4E2D;&#x6DFB;&#x52A0;&#xFF1A;</p>
<pre><code class="lang-bash"><span class="hljs-built_in">export</span> PUB_HOSTED_URL=https://mirrors.tuna.tsinghua.edu.cn/dart-pub
<span class="hljs-built_in">export</span> FLUTTER_STORAGE_BASE_URL=https://mirrors.tuna.tsinghua.edu.cn/flutter
</code></pre>
<p>&#x7136;&#x540E;&#x6267;&#x884C;&#xFF1A;</p>
<pre><code class="lang-bash"><span class="hljs-built_in">source</span> ~/.bash_profile  <span class="hljs-comment"># &#x6216; source ~/.zshrc</span>
</code></pre>
<h4 id="&#x95EE;&#x9898;2&#xFF1A;&#x7279;&#x5B9A;&#x4F9D;&#x8D56;&#x4E0B;&#x8F7D;&#x5931;&#x8D25;">&#x95EE;&#x9898;2&#xFF1A;&#x7279;&#x5B9A;&#x4F9D;&#x8D56;&#x4E0B;&#x8F7D;&#x5931;&#x8D25;</h4>
<p><strong>&#x73B0;&#x8C61;&#xFF1A;</strong> &#x67D0;&#x4E9B;&#x5305;&#x4E0B;&#x8F7D;&#x5931;&#x8D25;&#x6216;&#x7248;&#x672C;&#x51B2;&#x7A81;</p>
<p><strong>&#x89E3;&#x51B3;&#x65B9;&#x6848;&#xFF1A;</strong></p>
<p><strong>&#x65B9;&#x6848;1&#xFF1A;&#x6E05;&#x7406;&#x9879;&#x76EE;&#x7F13;&#x5B58;</strong></p>
<pre><code class="lang-bash">flutter clean
rm pubspec.lock
flutter pub get
</code></pre>
<p><strong>&#x65B9;&#x6848;2&#xFF1A;&#x6307;&#x5B9A;&#x7248;&#x672C;</strong></p>
<p>&#x5728;<code>pubspec.yaml</code>&#x4E2D;&#x6307;&#x5B9A;&#x7279;&#x5B9A;&#x7248;&#x672C;&#xFF1A;</p>
<pre><code class="lang-yaml"><span class="hljs-attr">dependencies:</span>
<span class="hljs-attr">  flutter:</span>
<span class="hljs-attr">    sdk:</span> flutter
<span class="hljs-attr">  some_package:</span> ^<span class="hljs-number">1.0</span><span class="hljs-number">.0</span>  <span class="hljs-comment"># &#x6307;&#x5B9A;&#x5177;&#x4F53;&#x7248;&#x672C;</span>
</code></pre>
<p><strong>&#x65B9;&#x6848;3&#xFF1A;&#x4F7F;&#x7528;pub cache&#x6E05;&#x7406;</strong></p>
<pre><code class="lang-bash"><span class="hljs-comment"># &#x6E05;&#x7406;pub&#x7F13;&#x5B58;</span>
flutter pub cache clean

<span class="hljs-comment"># &#x91CD;&#x65B0;&#x4E0B;&#x8F7D;</span>
flutter pub get
</code></pre>
<h2 id="&#x5E38;&#x89C1;&#x73AF;&#x5883;&#x95EE;&#x9898;&#x6392;&#x67E5;">&#x5E38;&#x89C1;&#x73AF;&#x5883;&#x95EE;&#x9898;&#x6392;&#x67E5;</h2>
<h3 id="&#x8BBE;&#x5907;&#x8FDE;&#x63A5;&#x95EE;&#x9898;">&#x8BBE;&#x5907;&#x8FDE;&#x63A5;&#x95EE;&#x9898;</h3>
<p><strong>&#x95EE;&#x9898;&#xFF1A;</strong> <code>flutter devices</code>&#x65E0;&#x6CD5;&#x8BC6;&#x522B;&#x9E3F;&#x8499;&#x8BBE;&#x5907;</p>
<p><strong>&#x6392;&#x67E5;&#x6B65;&#x9AA4;&#xFF1A;</strong></p>
<ol>
<li><p><strong>&#x68C0;&#x67E5;USB&#x8FDE;&#x63A5;</strong></p>
<pre><code class="lang-bash"><span class="hljs-comment"># &#x68C0;&#x67E5;&#x8BBE;&#x5907;&#x8FDE;&#x63A5;&#x72B6;&#x6001;</span>
hdc list targets
</code></pre>
</li>
<li><p><strong>&#x68C0;&#x67E5;&#x8BBE;&#x5907;&#x5F00;&#x53D1;&#x8005;&#x9009;&#x9879;</strong></p>
<ul>
<li>&#x786E;&#x4FDD;&#x5DF2;&#x5F00;&#x542F;&quot;&#x5F00;&#x53D1;&#x8005;&#x9009;&#x9879;&quot;</li>
<li>&#x5F00;&#x542F;&quot;USB&#x8C03;&#x8BD5;&quot;</li>
<li>&#x5F00;&#x542F;&quot;&#x4EC5;&#x5145;&#x7535;&#x6A21;&#x5F0F;&#x4E0B;&#x5141;&#x8BB8;ADB&#x8C03;&#x8BD5;&quot;</li>
</ul>
</li>
<li><p><strong>&#x91CD;&#x542F;&#x670D;&#x52A1;</strong></p>
<pre><code class="lang-bash"><span class="hljs-comment"># &#x91CD;&#x542F;hdc&#x670D;&#x52A1;</span>
hdc <span class="hljs-built_in">kill</span>-server
hdc start-server
</code></pre>
</li>
</ol>
<h3 id="&#x6784;&#x5EFA;&#x5931;&#x8D25;&#x95EE;&#x9898;">&#x6784;&#x5EFA;&#x5931;&#x8D25;&#x95EE;&#x9898;</h3>
<p><strong>&#x95EE;&#x9898;&#xFF1A;</strong> HAP&#x6784;&#x5EFA;&#x5931;&#x8D25;&#x6216;&#x7B7E;&#x540D;&#x9519;&#x8BEF;</p>
<p><strong>&#x6392;&#x67E5;&#x6B65;&#x9AA4;&#xFF1A;</strong></p>
<ol>
<li><p><strong>&#x68C0;&#x67E5;DevEco Studio&#x7248;&#x672C;</strong></p>
<ul>
<li>&#x786E;&#x4FDD;&#x4F7F;&#x7528;&#x6700;&#x65B0;&#x7248;&#x672C;&#x7684;DevEco Studio</li>
<li>&#x66F4;&#x65B0;SDK&#x5230;&#x6700;&#x65B0;&#x7248;&#x672C;</li>
</ul>
</li>
<li><p><strong>&#x6E05;&#x7406;&#x6784;&#x5EFA;&#x7F13;&#x5B58;</strong></p>
<pre><code class="lang-bash">flutter clean
<span class="hljs-built_in">cd</span> ohos
./hvigorw clean
<span class="hljs-built_in">cd</span> ..
flutter build hap --debug
</code></pre>
</li>
<li><p><strong>&#x68C0;&#x67E5;&#x9879;&#x76EE;&#x8DEF;&#x5F84;</strong></p>
<ul>
<li>&#x786E;&#x4FDD;&#x9879;&#x76EE;&#x8DEF;&#x5F84;&#x4E0D;&#x5305;&#x542B;&#x4E2D;&#x6587;&#x5B57;&#x7B26;</li>
<li>&#x907F;&#x514D;&#x8DEF;&#x5F84;&#x8FC7;&#x957F;&#x7684;&#x95EE;&#x9898;</li>
</ul>
</li>
</ol>
<h3 id="&#x6027;&#x80FD;&#x548C;&#x8C03;&#x8BD5;&#x95EE;&#x9898;">&#x6027;&#x80FD;&#x548C;&#x8C03;&#x8BD5;&#x95EE;&#x9898;</h3>
<p><strong>&#x95EE;&#x9898;&#xFF1A;</strong> &#x5E94;&#x7528;&#x8FD0;&#x884C;&#x7F13;&#x6162;&#x6216;&#x8C03;&#x8BD5;&#x529F;&#x80FD;&#x5F02;&#x5E38;</p>
<p><strong>&#x89E3;&#x51B3;&#x65B9;&#x6848;&#xFF1A;</strong></p>
<ol>
<li><p><strong>&#x4F7F;&#x7528;&#x6027;&#x80FD;&#x5206;&#x6790;&#x6A21;&#x5F0F;</strong></p>
<pre><code class="lang-bash">flutter run --profile <span class="hljs-_">-d</span> &lt;&#x8BBE;&#x5907;ID&gt;
</code></pre>
</li>
<li><p><strong>&#x67E5;&#x770B;&#x8BE6;&#x7EC6;&#x65E5;&#x5FD7;</strong></p>
<pre><code class="lang-bash">flutter run -v <span class="hljs-_">-d</span> &lt;&#x8BBE;&#x5907;ID&gt;
</code></pre>
</li>
<li><p><strong>&#x4F7F;&#x7528;DevTools&#x8FDB;&#x884C;&#x8C03;&#x8BD5;</strong></p>
<pre><code class="lang-bash">flutter run --debug <span class="hljs-_">-d</span> &lt;&#x8BBE;&#x5907;ID&gt;
<span class="hljs-comment"># &#x5728;&#x53E6;&#x4E00;&#x4E2A;&#x7EC8;&#x7AEF;&#x4E2D;&#x8FD0;&#x884C;</span>
flutter pub global run devtools
</code></pre>
</li>
</ol>
<h2 id="&#x6700;&#x4F73;&#x5B9E;&#x8DF5;&#x5EFA;&#x8BAE;">&#x6700;&#x4F73;&#x5B9E;&#x8DF5;&#x5EFA;&#x8BAE;</h2>
<h3 id="&#x73AF;&#x5883;&#x914D;&#x7F6E;&#x5EFA;&#x8BAE;">&#x73AF;&#x5883;&#x914D;&#x7F6E;&#x5EFA;&#x8BAE;</h3>
<ol>
<li><p><strong>&#x7248;&#x672C;&#x7BA1;&#x7406;</strong></p>
<ul>
<li>&#x4F7F;&#x7528;&#x7A33;&#x5B9A;&#x7248;&#x672C;&#x7684;Flutter SDK</li>
<li>&#x5B9A;&#x671F;&#x66F4;&#x65B0;DevEco Studio</li>
<li>&#x4FDD;&#x6301;&#x8BBE;&#x5907;&#x7CFB;&#x7EDF;&#x7248;&#x672C;&#x8F83;&#x65B0;</li>
</ul>
</li>
<li><p><strong>&#x7F51;&#x7EDC;&#x914D;&#x7F6E;</strong></p>
<ul>
<li>&#x914D;&#x7F6E;&#x5408;&#x9002;&#x7684;&#x955C;&#x50CF;&#x6E90;</li>
<li>&#x4F7F;&#x7528;&#x7A33;&#x5B9A;&#x7684;&#x7F51;&#x7EDC;&#x8FDE;&#x63A5;</li>
<li>&#x5FC5;&#x8981;&#x65F6;&#x914D;&#x7F6E;&#x4EE3;&#x7406;</li>
</ul>
</li>
<li><p><strong>&#x9879;&#x76EE;&#x7BA1;&#x7406;</strong></p>
<ul>
<li>&#x907F;&#x514D;&#x9879;&#x76EE;&#x8DEF;&#x5F84;&#x5305;&#x542B;&#x7279;&#x6B8A;&#x5B57;&#x7B26;</li>
<li>&#x5B9A;&#x671F;&#x6E05;&#x7406;&#x6784;&#x5EFA;&#x7F13;&#x5B58;</li>
<li>&#x4F7F;&#x7528;&#x7248;&#x672C;&#x63A7;&#x5236;&#x7BA1;&#x7406;&#x914D;&#x7F6E;&#x6587;&#x4EF6;</li>
</ul>
</li>
</ol>
<h3 id="&#x5F00;&#x53D1;&#x6548;&#x7387;&#x4F18;&#x5316;">&#x5F00;&#x53D1;&#x6548;&#x7387;&#x4F18;&#x5316;</h3>
<ol>
<li><p><strong>&#x4F7F;&#x7528;&#x5FEB;&#x6377;&#x547D;&#x4EE4;</strong></p>
<pre><code class="lang-bash"><span class="hljs-comment"># &#x521B;&#x5EFA;&#x522B;&#x540D;&#x63D0;&#x9AD8;&#x6548;&#x7387;</span>
<span class="hljs-built_in">alias</span> frun=<span class="hljs-string">&apos;flutter run --debug&apos;</span>
<span class="hljs-built_in">alias</span> fdevices=<span class="hljs-string">&apos;flutter devices&apos;</span>
<span class="hljs-built_in">alias</span> fclean=<span class="hljs-string">&apos;flutter clean &amp;&amp; flutter pub get&apos;</span>
</code></pre>
</li>
<li><p><strong>&#x914D;&#x7F6E;IDE</strong></p>
<ul>
<li>&#x5B89;&#x88C5;Flutter&#x548C;Dart&#x63D2;&#x4EF6;</li>
<li>&#x914D;&#x7F6E;&#x4EE3;&#x7801;&#x683C;&#x5F0F;&#x5316;&#x89C4;&#x5219;</li>
<li>&#x8BBE;&#x7F6E;&#x5408;&#x9002;&#x7684;&#x8C03;&#x8BD5;&#x914D;&#x7F6E;</li>
</ul>
</li>
<li><p><strong>&#x76D1;&#x63A7;&#x548C;&#x65E5;&#x5FD7;</strong></p>
<pre><code class="lang-bash"><span class="hljs-comment"># &#x5B9E;&#x65F6;&#x67E5;&#x770B;&#x8BBE;&#x5907;&#x65E5;&#x5FD7;</span>
hdc shell hilog -x

<span class="hljs-comment"># Flutter&#x5E94;&#x7528;&#x65E5;&#x5FD7;</span>
flutter logs <span class="hljs-_">-d</span> &lt;&#x8BBE;&#x5907;ID&gt;
</code></pre>
</li>
</ol>
<h2 id="&#x603B;&#x7ED3;">&#x603B;&#x7ED3;</h2>
<p>&#x672C;&#x7AE0;&#x8BE6;&#x7EC6;&#x4ECB;&#x7ECD;&#x4E86;Flutter&#x9E3F;&#x8499;&#x5F00;&#x53D1;&#x73AF;&#x5883;&#x914D;&#x7F6E;&#x7684;&#x5173;&#x952E;&#x95EE;&#x9898;&#x548C;&#x89E3;&#x51B3;&#x65B9;&#x6848;&#xFF1A;</p>
<h3 id="&#x6838;&#x5FC3;&#x8981;&#x70B9;">&#x6838;&#x5FC3;&#x8981;&#x70B9;</h3>
<ol>
<li><strong>&#x7B7E;&#x540D;&#x914D;&#x7F6E;</strong>&#xFF1A;&#x4F7F;&#x7528;DevEco Studio&#x81EA;&#x52A8;&#x7B7E;&#x540D;&#x662F;&#x6700;&#x53EF;&#x9760;&#x7684;&#x65B9;&#x6CD5;</li>
<li><strong>&#x8BBE;&#x5907;&#x8FDE;&#x63A5;</strong>&#xFF1A;&#x786E;&#x4FDD;&#x5F00;&#x53D1;&#x8005;&#x9009;&#x9879;&#x548C;USB&#x8C03;&#x8BD5;&#x6B63;&#x786E;&#x914D;&#x7F6E;</li>
<li><strong>&#x4F9D;&#x8D56;&#x7BA1;&#x7406;</strong>&#xFF1A;&#x5408;&#x7406;&#x914D;&#x7F6E;&#x955C;&#x50CF;&#x6E90;&#xFF0C;&#x5B9A;&#x671F;&#x6E05;&#x7406;&#x7F13;&#x5B58;</li>
<li><strong>&#x95EE;&#x9898;&#x6392;&#x67E5;</strong>&#xFF1A;&#x638C;&#x63E1;&#x5E38;&#x89C1;&#x95EE;&#x9898;&#x7684;&#x7CFB;&#x7EDF;&#x6027;&#x6392;&#x67E5;&#x65B9;&#x6CD5;</li>
</ol>
<h3 id="&#x5E38;&#x7528;&#x547D;&#x4EE4;&#x6C47;&#x603B;">&#x5E38;&#x7528;&#x547D;&#x4EE4;&#x6C47;&#x603B;</h3>
<pre><code class="lang-bash"><span class="hljs-comment"># &#x73AF;&#x5883;&#x68C0;&#x67E5;</span>
flutter doctor
flutter devices

<span class="hljs-comment"># &#x9879;&#x76EE;&#x8FD0;&#x884C;</span>
flutter run --debug <span class="hljs-_">-d</span> &lt;&#x8BBE;&#x5907;ID&gt;
flutter build hap --debug

<span class="hljs-comment"># &#x95EE;&#x9898;&#x6392;&#x67E5;</span>
flutter clean
hdc list targets
hdc <span class="hljs-built_in">kill</span>-server &amp;&amp; hdc start-server

<span class="hljs-comment"># &#x4F9D;&#x8D56;&#x7BA1;&#x7406;</span>
flutter pub get
flutter pub upgrade
flutter pub cache clean
</code></pre>
<h3 id="&#x63A8;&#x8350;&#x5DE5;&#x5177;">&#x63A8;&#x8350;&#x5DE5;&#x5177;</h3>
<ul>
<li><strong>DevEco Studio</strong>&#xFF1A;&#x7528;&#x4E8E;&#x7B7E;&#x540D;&#x914D;&#x7F6E;&#x548C;&#x539F;&#x751F;&#x5F00;&#x53D1;</li>
<li><strong>Flutter Inspector</strong>&#xFF1A;&#x7528;&#x4E8E;UI&#x8C03;&#x8BD5;</li>
<li><strong>DevTools</strong>&#xFF1A;&#x7528;&#x4E8E;&#x6027;&#x80FD;&#x5206;&#x6790;</li>
<li><strong>hdc&#x5DE5;&#x5177;</strong>&#xFF1A;&#x7528;&#x4E8E;&#x8BBE;&#x5907;&#x7BA1;&#x7406;</li>
</ul>
<p>&#x901A;&#x8FC7;&#x638C;&#x63E1;&#x8FD9;&#x4E9B;&#x73AF;&#x5883;&#x914D;&#x7F6E;&#x8981;&#x70B9;&#x548C;&#x95EE;&#x9898;&#x89E3;&#x51B3;&#x65B9;&#x6CD5;&#xFF0C;&#x60A8;&#x5C06;&#x80FD;&#x591F;&#x66F4;&#x52A0;&#x9AD8;&#x6548;&#x5730;&#x8FDB;&#x884C;Flutter&#x9E3F;&#x8499;&#x5E94;&#x7528;&#x5F00;&#x53D1;&#x3002;&#x5728;&#x9047;&#x5230;&#x95EE;&#x9898;&#x65F6;&#xFF0C;&#x53EF;&#x4EE5;&#x6309;&#x7167;&#x672C;&#x7AE0;&#x63D0;&#x4F9B;&#x7684;&#x6B65;&#x9AA4;&#x8FDB;&#x884C;&#x7CFB;&#x7EDF;&#x6027;&#x7684;&#x6392;&#x67E5;&#x548C;&#x89E3;&#x51B3;&#x3002; </p>
<footer class="page-footer"><span class="copyright">powered by Gitbook</span><span class="footer-modification">&#x8BE5;&#x6587;&#x4EF6;&#x4FEE;&#x8BA2;&#x65F6;&#x95F4;&#xFF1A;
2025-09-04 08:17:16
</span></footer>
<script>console.log("plugin-popup....");document.onclick = function(e){ e.target.tagName === "IMG" && window.open(e.target.src,e.target.src)}</script><style>img{cursor:pointer}</style> 
          </section>
          
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>
 
          <div class="book-footer">
            
            <div class="donate">
              <div></div>
              <button class="donate-btn" onclick="showModal()">赞赏</button>
            </div>
             
            <div class="copyright"></div>
            
          </div>
          
        </div>
      </div>
      
    </div>

     
    <a
      href="./"
      class="navigation navigation-prev "
      aria-label="Previous page: 14.性能优化与调试"
    >
      <i class="fa fa-angle-left"></i>
    </a>
     
    <a
      href="13.2Flutter_开发鸿蒙应用时三方库引入指南.html"
      class="navigation navigation-next "
      aria-label="Next page: 14.2 Flutter开发鸿蒙应用时三方库引入指南"
    >
      <i class="fa fa-angle-right"></i>
    </a>
      
  </div>
  <script>
    function showModal() {
      document.getElementsByClassName("mask")[0].style.display = "block";
      document.getElementsByClassName("donate-modal")[0].style.display =
        "block";
    }
    // 切换赞赏码
    function showDonateImg(num) {
      let alipay = "";
      let wxpay = ""
      if(num){
        wxpay = "hidden"
      }else{
        alipay = "hidden"
      }
      document.getElementById("wxpay-code").hidden = wxpay;
      document.getElementById("alipay-code").hidden = alipay;
      document.getElementsByName("pay-way")[num].checked = "checked";
    }

    // 关闭赞赏框
    function closeDonateModal() {
      document.getElementsByClassName("mask")[0].style.display = "none";
      document.getElementsByClassName("donate-modal")[0].style.display = "none";
    }

    var gitbook = gitbook || [];
    gitbook.push(function () {
      gitbook.page.hasChanged({"page":{"title":"14.1 环境配置","level":"1.14.1","depth":2,"next":{"title":"14.2 Flutter开发鸿蒙应用时三方库引入指南","level":"1.14.2","depth":2,"path":"chapter13/13.2Flutter_开发鸿蒙应用时三方库引入指南.md","ref":"./chapter13/13.2Flutter_开发鸿蒙应用时三方库引入指南.md","articles":[]},"previous":{"title":"14.性能优化与调试","level":"1.14","depth":1,"path":"chapter13/README.md","ref":"chapter13/README.md","articles":[{"title":"14.1 环境配置","level":"1.14.1","depth":2,"path":"chapter13/13.1环境配置.md","ref":"./chapter13/13.1环境配置.md","articles":[]},{"title":"14.2 Flutter开发鸿蒙应用时三方库引入指南","level":"1.14.2","depth":2,"path":"chapter13/13.2Flutter_开发鸿蒙应用时三方库引入指南.md","ref":"./chapter13/13.2Flutter_开发鸿蒙应用时三方库引入指南.md","articles":[]},{"title":"14.3 性能分析定界指南","level":"1.14.3","depth":2,"path":"chapter13/13.2性能分析定界指南.md","ref":"./chapter13/13.2性能分析定界指南.md","articles":[]},{"title":"14.4 性能分析第一步-梳理线程顺序","level":"1.14.4","depth":2,"path":"chapter13/13.3梳理线程顺序.md","ref":"./chapter13/13.3梳理线程顺序.md","articles":[]},{"title":"14.5 性能分析-滑动响应时延","level":"1.14.5","depth":2,"path":"chapter13/13.4滑动响应时延.md","ref":"./chapter13/13.4滑动响应时延.md","articles":[]},{"title":"14.6 性能分析-帧渲染跟踪","level":"1.14.6","depth":2,"path":"chapter13/13.5帧渲染跟踪.md","ref":"./chapter13/13.5帧渲染跟踪.md","articles":[]},{"title":"14.7 如何调试代码","level":"1.14.7","depth":2,"path":"chapter13/13.6如何调试代码.md","ref":"./chapter13/13.6如何调试代码.md","articles":[]},{"title":"14.8 在Flutter中实现鸿蒙平台引入package，其他平台排除","level":"1.14.8","depth":2,"path":"chapter13/13.7在_Flutter_中实现鸿蒙平台引入_package，其他平台排除.md","ref":"./chapter13/13.7在_Flutter_中实现鸿蒙平台引入_package，其他平台排除.md","articles":[]},{"title":"14.9 运行","level":"1.14.9","depth":2,"path":"chapter13/运行.md","ref":"./chapter13/运行.md","articles":[]}]},"dir":"ltr"},"config":{"plugins":["edit-link","splitter","tbfed-pagefooter","expandable-chapters","chapter-fold","back-to-top-button","code","pageview-count","popup","search-plus","-lunr","-search","-sharing","sharing-plus","theme-lou","emphasize","livereload","gitcode-issue-feedback","forkmegithub","livereload"],"root":".","styles":{"website":"styles/website.css"},"pluginsConfig":{"tbfed-pagefooter":{"modify_label":"该文件修订时间：","modify_format":"YYYY-MM-DD HH:mm:ss"},"chapter-fold":{},"pluginsConfig":{"expandable-chapters":{}},"emphasize":{},"livereload":{},"gitcode-issue-feedback":{"repo":"nutpi/gitbook-harmonyos-flutter"},"splitter":{},"readmore":{"blogId":"27976-1678928361372-483","name":"坚果派","qrcode":"https://luckly007.oss-cn-beijing.aliyuncs.com/images/image-20230316085818226.png","keyword":"鸿蒙坚果"},"sharing-plus":{"qq":false,"all":["facebook","google","twitter","instapaper","linkedin","pocket","stumbleupon"],"douban":false,"facebook":true,"weibo":false,"instapaper":false,"whatsapp":false,"hatenaBookmark":false,"twitter":true,"messenger":false,"line":false,"vk":false,"pocket":true,"google":false,"viber":false,"stumbleupon":false,"qzone":false,"linkedin":false},"popup":{},"code":{"copyButtons":true},"theme-lou":{"hide-elements":[".summary .gitbook-link",".summary .divider"],"color":"#FF4848","book-anchor-title":"本章目录","copyright":{"author":"vx:nut_pie"},"forbidCopy":true,"logo":"assets/avatar.png","book-summary-title":"文章目录","search-placeholder":"输入关键字搜索","copyrightLogo":"assets/copyright.png","favicon":"assets/avatar.png","appleTouchIconPrecomposed152":"assets/avatar.png"},"changyan":{"appid":"cyvHoCPAs","conf":"0440cfc4168ba95d73cfc52dd4d5c60b"},"fontsettings":{"theme":"white","family":"sans","size":2},"highlight":{},"back-to-top-button":{},"pageview-count":{},"sharing":{"qq":false,"all":["qq","qzone","whatsapp","douban","facebook","google","instapaper","linkedin","messenger","twitter","weibo"],"douban":false,"facebook":false,"weibo":false,"twitter":false,"pocket":false,"google":false,"qzone":false},"edit-link":{"label":"编辑此页","base":"https://gitcode.com/nutpi/gitbook-harmonyos-flutter/edit/master/"},"forkmegithub":{"color":"gray","url":"https://gitcode.com/nutpi/gitbook-harmonyos-flutter/fork/create"},"theme-default":{"styles":{"pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css","website":"styles/website.css"},"showLevel":false},"expandable-chapters":{},"search-plus":{}},"theme":"default","author":"坚果派","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{"themeLou":{"nav":[{"target":"_blank","url":"https://www.nutpi.net/","name":"坚果派官网"},{"target":"_blank","url":"https://www.arkui.club/","name":"ArkUI实战"},{"target":"_blank","url":"https://space.bilibili.com/480883651","name":"哔哩哔哩"},{"target":"_blank","url":"https://gitcode.com/nutpi","name":"GitCode"}],"footer":{"donate":{"wechat":"https://luckly007.oss-cn-beijing.aliyuncs.com/img/image-20210922202901895.png","message":"随意打赏，但不要超过一顿早餐钱 💕","wxpay":"https://luckly007.oss-cn-beijing.aliyuncs.com/img/image-20210922202901895.png","alipay":"https://luckly007.oss-cn-beijing.aliyuncs.com/img/image-20210922202843746.png","nickname":"breeze","button":"打赏","wechatText":"微信","alipayText":"支付宝","title":"『赠人玫瑰 🌹 手有余香 』","avatar":"http://xkapp-uat.oss-cn-hangzhou.aliyuncs.com/2e7a3f70-80ab-4b50-93ec-a04dfeef949b/avatar-100.png"},"copyright":true}}},"title":"Flutter for Harmony教程","language":"zh-hans","gitbook":"*","description":"Flutter for Harmony电子书教程"},"file":{"path":"chapter13/13.1环境配置.md","mtime":"2025-09-04T00:17:16.192Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2025-09-14T05:25:49.343Z"},"basePath":"..","book":{"language":""}});
    });
  </script>
</div>

        
    <script src="../gitbook/gitbook.js"></script>
    <script src="../gitbook/theme.js"></script>
    
        
        <script src="../gitbook/gitbook-plugin-edit-link/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-splitter/splitter.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-expandable-chapters/expandable-chapters.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-chapter-fold/chapter-fold.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-back-to-top-button/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-code/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-pageview-count/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search-plus/jquery.mark.min.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search-plus/search.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-sharing-plus/buttons.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-livereload/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-gitcode-issue-feedback/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-forkmegithub/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-theme-lou/jweixin-1.6.0.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-theme-lou/lou.js"></script>
        
    

    </body>
</html>

